package com.shenganyuan.smac.common;

import android.os.Environment;

import java.io.File;

/**
 * Created by Damon on 2016/12/7.
 */

public class Config {
    public static final String SD_CARD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator;// SD卡路径
    public static final String APP_CARD_PATH = SD_CARD_PATH + "smac";// SD卡路径
    public static final String APP_CARD_PATH_PICTURE = APP_CARD_PATH + File.separator + "picture" + File.separator;// SD卡路径
    public static final String APP_CARD_PATH_PICTURE_COMPRESS = APP_CARD_PATH_PICTURE + "compress" + File.separator;// SD卡路径
    public static final String DATA_PATH_CRASH = APP_CARD_PATH + File.separator + "crash" + File.separator;// 卡上的数据文件路径
    /**
     * 错误重启app限制次数
     */
    public static final int RESTART_NUM_MOST = 2;

    /**
     * 定位配置
     */
    //定位在1000m以内
    public static final int POSITION_CIRCLE = 1000;
    //定位服务是否自动启动
    public static final boolean POSITION_AUTO_SERVICE = true;
    //定位服务定位间隔时间
    public static final long POSITION_AUTO_SERVICE_INTERVAL = 60 * 1000;


    //全局图片选中最大3张
    public static final int PIC_SIZE = 3;
    /**
     * 图片压缩大小限制(大于此值才会被压缩K)
     */
    public static final int PIC_COMPRESS_SIZE = 500;
    /*
     * url
     * */
    public static final String BASE_URL = "http://120.27.23.127:8080/sscapp/";


    public static class Data {
        public static final int pageSize = 20;
        public static final int zoom_to = 16;//地图默认放到尺寸(3-19)

    }

    public static class PrefKey {
        public static final String KEY_APP_FIRST_START = "KEY_APP_FIRST_START";
        public static final String KEY_RESTART_NUM_MOST = "KEY_RESTART_NUM_MOST";
    }

    /**
     * 事件event——key
     */
    public static class EventKit {
        public static final int KEY_EVENT_REFRESH_ACTRISKRECORDS = 100;
        public static final int KEY_EVENT_REFRESH_ACTCHECKRECORDS = 110;
        public static final int KEY_EVENT_REFRESH_ACTCHANGERECORDS = 120;
        public static final int KEY_EVENT_REFRESH_SET_POSITION = 130;
    }
}
